package com.guoyansoft.model.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘耀诚
 * 待处理订单实体
 */
public class PendingOrders implements Serializable {
    //主键
    private String id;
    //下单时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date orderTime;
    //配送详细地址
    private String shippingAddress;
    //配送区域
    private String distributionArea;
    //配送商品
    private String goodsName;
    //商品数量
    private String goodsNum;
    //配送备注
    private String remark;
    //客户实体
    private Customer customer;
    //订单状态
    private String state;
    //订单总价
    private Double totalPrice;
     //店铺名称
    private String shopName;
    //下单电话
    private String orderPhone;
    public PendingOrders() {
    }

    public String getOrderPhone() {
        return orderPhone;
    }

    public void setOrderPhone(String orderPhone) {
        this.orderPhone = orderPhone;
    }

    public PendingOrders(String id, Date orderTime, String shippingAddress, String distributionArea, String goodsName, String goodsNum, String remark, Customer customer, String state, Double totalPrice, String shopName) {
        this.id = id;
        this.orderTime = orderTime;
        this.shippingAddress = shippingAddress;
        this.distributionArea = distributionArea;
        this.goodsName = goodsName;
        this.goodsNum = goodsNum;
        this.remark = remark;
        this.customer = customer;
        this.state = state;
        this.totalPrice = totalPrice;
        this.shopName = shopName;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getShippingAddress() {
        return shippingAddress;
    }

    public void setShippingAddress(String shippingAddress) {
        this.shippingAddress = shippingAddress;
    }

    public String getDistributionArea() {
        return distributionArea;
    }

    public void setDistributionArea(String distributionArea) {
        this.distributionArea = distributionArea;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(String goodsNum) {
        this.goodsNum = goodsNum;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    @Override
    public String toString() {
        return "PendingOrders{" +
                "id='" + id + '\'' +
                ", orderTime=" + orderTime +
                ", shippingAddress='" + shippingAddress + '\'' +
                ", distributionArea='" + distributionArea + '\'' +
                ", goodsName='" + goodsName + '\'' +
                ", goodsNum='" + goodsNum + '\'' +
                ", remark='" + remark + '\'' +
                ", customer=" + customer +
                ", state='" + state + '\'' +
                ", totalPrice=" + totalPrice +
                ", shopName='" + shopName + '\'' +
                '}';
    }
}
